package com.njit.farm.dataobject;

import com.njit.farm.model.Goods;

public class FGoods {
    private String gId;

    private String gTitle;

    private Float gPrice;

    private Integer gSales;

    private Integer gFare;

    private String gPosition;

    private String gTel;

    private String gCover;

    private String gContent;

    private String uId;

    public String getgId() {
        return gId;
    }

    public void setgId(String gId) {
        this.gId = gId;
    }

    public String getgTitle() {
        return gTitle;
    }

    public void setgTitle(String gTitle) {
        this.gTitle = gTitle;
    }

    public Float getgPrice() {
        return gPrice;
    }

    public void setgPrice(Float gPrice) {
        this.gPrice = gPrice;
    }

    public Integer getgSales() {
        return gSales;
    }

    public void setgSales(Integer gSales) {
        this.gSales = gSales;
    }

    public Integer getgFare() {
        return gFare;
    }

    public void setgFare(Integer gFare) {
        this.gFare = gFare;
    }

    public String getgPosition() {
        return gPosition;
    }

    public void setgPosition(String gPosition) {
        this.gPosition = gPosition;
    }

    public String getgTel() {
        return gTel;
    }

    public void setgTel(String gTel) {
        this.gTel = gTel;
    }

    public String getgCover() {
        return gCover;
    }

    public void setgCover(String gCover) {
        this.gCover = gCover;
    }

    public String getgContent() {
        return gContent;
    }

    public void setgContent(String gContent) {
        this.gContent = gContent;
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public Goods toModel(){
        Goods goods = new Goods();
        goods.setId(this.gId);
        goods.setTel(this.gTel);
        goods.setSales(this.gSales);
        goods.setPrice(this.gPrice);
        goods.setFare(this.gFare);
        goods.setCover(this.gCover);
        goods.setContent(this.gContent);
        goods.setPosition(this.gPosition);
        goods.setTitle(this.gTitle);
        goods.setuId(this.uId);

        return goods;
    }
}